package org.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.util.Date;

/**
 * @author Fz
 * @since 1.0.0 2024-07-31
 */

@Data
@TableName("FMC_status")
public class FmcStatus {

    @Column(name = "ID")
    private Integer id;

    @Column(name = "pid", comment = "项目编码")
    private String pid;

    @Column(name = "did", comment = "设备编码")
    private String did;

    /**
     * 本条记录入库的时间
     */
    @Column(name = "ctime", comment = "本条记录入库的时间", type = MySqlTypeConstant.DATETIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;

    /**
     * 本条记录数据的采集时间
     */
    @Column(name = "stime", comment = "本条记录数据的采集时间")
    private Integer stime;

    @Column(name = "c01", type = MySqlTypeConstant.FLOAT)
    private Float c01;

    @Column(name = "c02", type = MySqlTypeConstant.FLOAT)
    private Float c02;

    @Column(name = "c03", type = MySqlTypeConstant.FLOAT, decimalLength = 3)
    private Float c03;

    @Column(name = "c04")
    private Float c04;

    @Column(name = "c05")
    private Float c05;

    @Column(name = "c06")
    private Float c06;

    @Column(name = "c07")
    private Float c07;

    @Column(name = "c08")
    private Float c08;

    @Column(name = "c09")
    private Float c09;

    @Column(name = "c10")
    private Float c10;

}